//
//  XMFeedbackTableViewCell.m
//  XunMi
//
//  Created by MacBook on 2024/3/4.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMFeedbackTableViewCell.h"
#import "XMFeedbackModel.h"

@interface XMFeedbackTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *contentLa;

@property (weak, nonatomic) IBOutlet UILabel *stateLa;

@property (weak, nonatomic) IBOutlet UILabel *dateLa;

@property (weak, nonatomic) IBOutlet UIView *bgV;

@end

@implementation XMFeedbackTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    kCornerRadius(_bgV, 10, 0, UIColor.clearColor);
}

- (void)setModel:(XMFeedbackModel *)model {
    _model = model;
    self.contentLa.text = model.content;
    self.stateLa.text = model.status;
    self.dateLa.text = model.create_time;
    
    if ([model.status isEqualToString:@"处理中"]) {
        self.stateLa.textColor = kAppMainColor;
    } else {
        self.stateLa.textColor = kHEX(@"#44AF35");
    }
}

@end
